﻿using System.Collections.Generic;
using System.Linq;
using System.Text;
using QuickGraph;
using RW.Data.Objects;

namespace RW.Data.Graph
{
    public class MultiGraphEdge : IEdge<State>
    {
        public MultiGraphEdge(State source, State target, string actionName, int actionCost)
        {
            this.ActionName = actionName;
            this.ActionCost = actionCost;
            this.Source = source;
            this.Target = target;
        }

        public string ActionName { get; set; }
        public int ActionCost { get; set; }
        public State Source { get; set; }
        public State Target { get; set; }

        public string Tag
        {
            get { return string.Format("{0}({1})", this.ActionName, this.ActionCost); }
        }
    }
}
